<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<script type="text/javascript">
		function page(n,s){
			$("#pageNo").val(n);
			$("#pageSize").val(s);
			$("#searchForm").submit();
        	return false;
        }
</script>
    <div class="content-wrap">
        <div class="wrapper" style="bottom: 50px;">
            <ul class="nav nav-tabs">
                <li class="active">
                    <a href="#"   onclick="loadDiv('mainCenterDiv','${ctx}/med/medicalCardRechangeRec/index')">充值列表</a>
                </li>
                <%--<li>--%>
                    <%--<a href="#" onclick="loadDiv('mainCenterDiv','${ctx}/med/medicalCardRechangeRec/form')">充值添加</a>--%>
                <%--</li>--%>
            </ul>
            <section class="panel panel-default">
                <div class="panel-body">
                    <div class="table-responsive no-border">
                        <div class="datatable-top">
                            <div class="pull-left">
                            	<form:form id="searchForm" modelAttribute="medicalCardRechangeRec"  onsubmit="return loadDivForm('mainCenterDiv','searchForm','${ctx}/med/medicalCardRechangeRec/index');" method="post" class="form-inline">
                                    <input id="pageNo" name="pageNo" type="hidden" value="${page.pageNo}"/>
                                    <%--充值方式:--%>
                                    <%--<form:select path="rechangeType"  class="form-control" itemLabel="label" itemValue="value">--%>
                                        <%--<form:option value="" label="全部"/>--%>
                                        <%--<form:options items="${fns:getDictList('card_pay_way')}" itemLabel="label"--%>
                                                      <%--itemValue="value" htmlEscape="false"/>--%>
                                    <%--</form:select>--%>

                                    充值时间:<input name="startTime"  value="${medicalCardRechangeRec.startTime}" class="form-control Wdate" type="text"
                                           onFocus="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'})"
                                           readonly="readonly"/>
                                    <label>至</label>
                                    <input name="endTime"  value="${medicalCardRechangeRec.endTime}" class="form-control Wdate" type="text"
                                           readonly="readonly"
                                           onFocus="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'})"/>
                                    <input id="btnSubmit" class="btn btn-primary" type="submit" value="查询"/>
                                  </form:form>
                            </div>
                        </div>
                        <table id="contentTable" class="table table-bordered mg-t datatable">
                            <thead>
                                <tr>
                                        <%--<th>主键</th>--%>

                                        <%--<th>patient_id</th>--%>
                                        <th>姓名</th>
                                        <th>充值金额</th>
                                        <th>充值方式<%-- 0 现金 1 微信 3 银行卡--%></th>
                                        <%--<th>余额</th>--%>
                                        <th>收据号</th>
                                        <%--<th>expand1</th>--%>
                                        <%--<th>expand2</th>--%>
                                        <%--<th>expand3</th>--%>
                                        <%--<th>机构ID</th>--%>
                                        <%--<th>标志</th>--%>
                                        <th>收费人</th>
                                        <th>收费时间</th>
                                        <%--<th>更新人</th>--%>
                                        <%--<th>更新时间</th>--%>
                                        <%--<th>备注信息</th>--%>
                                    <%--<th>操作</th>--%>
                                </tr>
                            </thead>
                            <tbody>
                            <c:forEach items="${page.list}" var="medicalCardRechangeRec">
                                <tr>
                                        <%--<td> ${medicalCardRechangeRec.id}</td>--%>
                                        <%--<td> ${medicalCardRechangeRec.patientId}</td>--%>
                                        <td> ${medicalCardRechangeRec.name}</td>
                                        <td> ${medicalCardRechangeRec.rechangeMoney}</td>

                                        <td>${fns:getDictLabel(medicalCardRechangeRec.rechangeType, 'card_pay_way', '')}</td>
                                        <%--<td> ${medicalCardRechangeRec.balance}</td>--%>
                                        <td> ${medicalCardRechangeRec.rcptNo}</td>
                                        <%--<td> ${medicalCardRechangeRec.expand1}</td>--%>
                                        <%--<td> ${medicalCardRechangeRec.expand2}</td>--%>
                                        <%--<td> ${medicalCardRechangeRec.expand3}</td>--%>
                                        <%--<td> ${medicalCardRechangeRec.orgId}</td>--%>
                                        <%--<td> ${medicalCardRechangeRec.delFlag}</td>--%>
                                        <td> ${fns:getUserName(medicalCardRechangeRec.createBy.id)}</td>
                                        <td><fmt:formatDate value="${medicalCardRechangeRec.createDate}"
                                                                pattern="MM-dd HH:mm"/></td>                                        <%--<td> ${medicalCardRechangeRec.updateBy.id}</td>--%>
                                        <%--<td> ${medicalCardRechangeRec.updateDate}</td>--%>
                                        <%--<td> ${medicalCardRechangeRec.remarks}</td>--%>
                                    <%--<td>--%>
                                        <%--<a href="#" onclick="loadDiv('mainCenterDiv','${ctx}/med/medicalCardRechangeRec/form?id=${medicalCardRechangeRec.id}')" class="btn btn-success btn-xs">修改</a>--%>
                                        <%--<a href="#"  class="applyBt btn btn-danger btn-xs" onclick="confirmExtend('确认要删除该充值吗？',function(){delLoad('mainCenterDiv','${ctx}/med/medicalCardRechangeRec/delete?id=${medicalCardRechangeRec.id}','${ctx}/sys/dict/index')})">删除</a>--%>
                                    <%--</td>--%>
                                </tr>
                            </c:forEach>

                        </table>
                        <div class="pagination">${page}</div>
                    </div>
                </div>
            </section>
        </div>
    </div>